package cn.yitun.chat.yitunservercommonlib.converter.po2vo.contact;


import cn.yitun.chat.yitunservercommonlib.dataentity.po.contact.ContactAddApplyInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.contact.ContactAddApplyVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ContactAddApplyPo2VoConverter {

    ContactAddApplyPo2VoConverter INSTANCE = Mappers.getMapper(ContactAddApplyPo2VoConverter.class);

    ContactAddApplyInfo vo2po(ContactAddApplyVo vo);

    List<ContactAddApplyInfo> vo2po(List<ContactAddApplyVo> voList);

    @InheritInverseConfiguration
    ContactAddApplyVo po2vo(ContactAddApplyInfo dto);

    @InheritInverseConfiguration
    List<ContactAddApplyVo> po2vo(List<ContactAddApplyInfo> dtoList);
}
